<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>个人资料</title>
    <link rel="stylesheet" href="/static/layui/css/layui.css" media="all"/>
</head>
<body>
<div class="layui-fluid" style="margin-top: 2%;">
    <div class="layui-form-item" style="margin-left: 5%;">
        <div class="layui-upload" id="detail_upload_view" hidden>
            <button type="button" class="layui-btn" id="d_uploadMyphoto">上传头像</button>
            <button type="button" class="layui-btn" id="d_confirmMyphoto">确认上传</button>
            <div class="layui-upload-list">
                <img class="layui-upload-img" id="d_showphoto" style="width: 150px;height: 150px;">
            </div>
        </div>
    </div>
    <form class="layui-form" action="">

        <div class="layui-form-item" style="margin-left: 80%;">
            <label class="layui-form-label">开启修改</label>
            <div class="layui-input-block">
                <input id="openSwitch" type="checkbox" name="switch" lay-skin="switch" lay-text="ON|OFF" lay-filter="isUpdate">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">头像</label>
            <div class="layui-input-block">
                <img id="showMyPhoto" src="${registerUser_data.photo}" style="width: 150px;height: 150px;">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">账号</label>
            <div class="layui-input-block">
                <input disabled type="text" name="d_id" id="d_id" value="${registerUser_data.id}" required  lay-verify="required" placeholder="请输入内容" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">昵称</label>
            <div class="layui-input-block">
                <input type="text" name="d_name" id="d_name" value="${registerUser_data.name}" required  lay-verify="required" placeholder="请输入内容" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">性别</label>
            <div class="layui-input-block">
                <input name="d_sex" value="男" title="男" type="radio">
                <input name="d_sex" value="女" title="女" type="radio">
            </div>
            <input id="inputsex" type="text" value="${registerUser_data.sex}" hidden>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">年龄</label>
            <div class="layui-input-block">
                <input type="text" name="d_age" id="d_age" value="${registerUser_data.age}" required  lay-verify="required|number" placeholder="请输入内容" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">联系电话</label>
            <div class="layui-input-inline">
                <input id="d_phone" name="d_phone" value="${registerUser_data.phone}" lay-verify="required|phone" placeholder="请输入内容" autocomplete="off" class="layui-input" type="tel">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">邮箱</label>
            <div class="layui-input-inline">
                <input id="d_email" name="d_email" value="${registerUser_data.mail}" lay-verify="email" autocomplete="off" placeholder="请输入内容" class="layui-input" type="text">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">身份证</label>
            <div class="layui-input-block">
                <input id="d_idCard" name="d_idCard" value="${registerUser_data.idCard}" lay-verify="identity" placeholder="请输入内容" autocomplete="off" class="layui-input" type="text">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">地址</label>
            <div class="layui-input-block">
                <input type="text" name="d_address" value="${registerUser_data.address}"  id="d_address" required  lay-verify="required" placeholder="请输入内容" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item" id="updateBtnView" hidden>
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="updateUserBtn">立即更新</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>

<script src="/static/js/html5.min.js"></script>
<script src="/static/js/respond.min.js"></script>
<script type="text/javascript" src="/static/layui/layui.js"></script>
<script type="text/javascript" src="/static/js/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="/static/js/front/personal.js"></script>
</body>
</html>